github.com/go-pg/pg/v10/internal/pool.ConnPool.idleConns (field)

17 uses

	github.com/go-pg/pg/v10/internal/pool (current package)
		pool.go#L81: 	idleConns []*Conn
		pool.go#L95: 		idleConns: make([]*Conn, 0, opt.PoolSize),
		pool.go#L136: 	p.idleConns = append(p.idleConns, cn)
		pool.go#L307: 	if len(p.idleConns) == 0 {
		pool.go#L311: 	idx := len(p.idleConns) - 1
		pool.go#L312: 	cn := p.idleConns[idx]
		pool.go#L313: 	p.idleConns = p.idleConns[:idx]
		pool.go#L326: 	p.idleConns = append(p.idleConns, cn)
		pool.go#L430: 	p.idleConns = nil
		pool.go#L476: 	if len(p.idleConns) == 0 {
		pool.go#L480: 	cn := p.idleConns[0]
		pool.go#L485: 	p.idleConns = append(p.idleConns[:0], p.idleConns[1:]...)